package com.kvest.ula.android;

import java.util.HashMap;
import java.util.Map;

public class ActivityHelper 
{
	private static ActivityHelper instance;
	private static final Object lock = new Object();
	
	public static ActivityHelper getHelper()
	{
		synchronized (lock) 
		{
			if (instance == null)
			{
				instance = new ActivityHelper();
			}
		}
		
		return instance;
	}
	
	private Map<String, Object> items;
	
	private ActivityHelper()
	{
		items = new HashMap<String, Object>();
	}
	
	public void put(String key, Object item)
	{
		items.put(key, item);
	}
	
	public Object get(String key)
	{
		return items.remove(key);
	}
}
